const { Sequelize } = require('sequelize');

const { MYSQL_CONF } = require('../../conf/db');

const sequelize = new Sequelize(MYSQL_CONF);

module.exports = sequelize;
// (async function () {
//   try {
//     await sequelize.authenticate();
//     console.log('Connection has been established');
//   } catch (error) {
//     console.log('Unable to connect to the database:', error);
//   }
// })();
